package com.pipi.biyesheji.dao.manager;

import com.pipi.biyesheji.dao.support.PageResult;
import com.pipi.biyesheji.dao.model.OrderitemDO;
import com.pipi.biyesheji.dao.query.OrderitemQuery;

import java.util.List;


/**
 * Manager for Orderitem.
 */
public interface OrderitemManager {
    /**
     * query count by query condition.
     */
    int countByQuery(OrderitemQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(OrderitemQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(Long id);

    /**
     * insert selective.
     */
    long insertSelective(OrderitemDO record);

    /**
     * select by query condition.
     */
    List<OrderitemDO> selectByQuery(OrderitemQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<OrderitemDO> selectByQueryWithPage(OrderitemQuery query);

    /**
     * select by primary key.
     */
    OrderitemDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( OrderitemDO record,  OrderitemQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(OrderitemDO record, OrderitemQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(OrderitemDO record);
}